package com.lx.constant;

import com.lx.annotation.Note;

/**
 * @author ylx
 */
public class DefaultRedisConstant {

    /***
     * redis的key的前缀
     */
    public interface RedisPrefix{
        //规定时间内次数限制
        String NUMBER_OF_LIMIT = "systemServer:numberOfLimit:";
        //用户token对应用户id:appid
        String USER_LOGIN_INFO_USER_INFO_APPID_BY_TOKEN = "systemServer:userLoginInfo:token:";
        //用户的指定appid的上次token
        String USER_LOGIN_INFO_TOKEN_BY_USER_ID_USER_TYPE = "systemServer:userLoginInfo:userId:userType:token:";
        @Note("缓存登录的权限列表")
        String USER_LOGIN_INFO_PERMISSIONS = "systemServer:userLoginInfo:permissions:";

        @Note("字典")
        String DICT = "dict:";
    }
}
